package com.hc.dao;

import com.hc.bean.AdminInfo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/*扫包*/
//@MapperScan
public interface AdminInfoDao {
    /*判断用户是否为管理员*/
    @Select("select count(*) from admin_info where name=#{name};")
    public Integer isAdmin(String name);


    /*判断密码是否正确*/
    @Select("select * from admin_info where name=#{name} and pwd=#{pwd};")
    public AdminInfo adminLogin(AdminInfo adminInfo);

    @Select("select * from admin_info")
    public List<AdminInfo> getAdminInfo();
 }
